package com.mybar.subject.application.convert;


import com.mybar.subject.application.dto.SubjectCategoryDTO;
import com.mybar.subject.domain.entity.SubjectCategoryBO;
import com.mybar.subject.infer.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SubjectCategoryDTOConvert {
    SubjectCategoryDTOConvert INSTANCE = Mappers.getMapper(SubjectCategoryDTOConvert.class);

    @Mapping(source = "id", target = "id")
    @Mapping(source = "categoryType", target = "categoryType")
    @Mapping(source = "categoryName", target = "categoryName")
    @Mapping(source = "imageUrl", target = "imageUrl")
    @Mapping(source = "parentId", target = "parentId")
    SubjectCategoryBO convertBoToCategory(SubjectCategoryDTO subjectCategoryDTO);


}
